/*
* A simple font dialog
* Author: Danny Battison
* Contact: gabehabe@googlemail.com
*/
/*
* And now let's look at the FontDialog class (this one's shorter)
*/



package co.edu.unal.geditor.view.tools;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;

import javax.swing.JDialog;

import co.edu.unal.geditor.controller.action.edit.FontChooser;

public class FontDialog extends JDialog {
        /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		public FontChooser font = new FontChooser(this);
        public FontDialog()
        {
                this.setLocation(new Point(100,100)); 
                 this.setSize(new Dimension(360, 242)); 
                this.getContentPane().add(font);
                this.setModal(true);
        }
        
        public Font showDialog()
        {
                this.setVisible(true);
                return this.font.SelectedFont;
        }
}

